<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <input type="hidden" id="exam_id" th:value="${exam.id}"/>
    <div id="examPaperTitle">
        <div class="alert alert-info" role="alert" th:text="${exam.name}"></div>
        <th:block th:if="${exam.yuliu2=='提交'}">
            <div style="float: right;margin-top: -60px;margin-right: 20px">
                <button class="btn btn-info"><span class="glyphicon glyphicon-save"></span>导出成绩</button>
            </div>
        </th:block>
        <th:block th:if="${exam.yuliu2==null || exam.yuliu2!='提交'}">
            <div style="float: right;margin-top: -60px;margin-right: 20px">
                <button onclick="exam.examPaperSubmit()" class="btn btn-info"><span class="glyphicon glyphicon-ok"></span>提交</button>
                <button class="btn btn-info"><span class="glyphicon glyphicon-save"></span>导出成绩</button>
            </div>
        </th:block>

    </div>
    <div id="examPaper_class_table">
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>班级名称</th>
                    <th>考试人数</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="dto:${examClass}">
                    <td th:text="${dtoStat.index+1}"></td>
                    <td th:text="${dto.className}"></td>
                    <td th:text="${dto.class_people}"></td>
                    <td><button th:onclick="exam.examPaper_studentList([[${dto.id}]],[[${dto.className}]])" class="btn btn-default">学生列表</button></td>
                </tr>
            </tbody>
        </table>
    </div>
    <div id="examPaper_student_table">

    </div>
</html>